package com.yunxin.core.customer.mapper;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yunxin.core.customer.domain.CustomerInfo;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.yunxin.core.customer.dto.CustomerCommonPageDto;
import com.yunxin.core.customer.dto.CustomerRunPageDto;
import com.yunxin.core.customer.vo.CustomerCommonVo;
import com.yunxin.core.customer.vo.CustomerInfoVo;
import com.yunxin.core.customer.vo.CustomerRunInfoVo;
import com.yunxin.core.wechat.domain.WechatFollowCustomer;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author Administrator
 * @description 针对表【customer_info(客户信息详情表)】的数据库操作Mapper
 * @createDate 2024-05-22 17:11:04
 * @Entity com.yunxin.core.customer.domain.CustomerInfo
 */
@DS("crm")
@Mapper
public interface CustomerInfoMapper extends BaseMapper<CustomerInfo> {

    IPage<CustomerCommonVo> listAllCustomerInfo(@Param("page") Page<CustomerCommonVo> page,
                                                @Param("command") CustomerCommonPageDto command);

    CustomerInfo getCustomerInfo(@Param("customerId") Long customerId);

//    IPage<CustomerRunInfoVo> customerRunPageQuery(@Param("page") Page<CustomerRunInfoVo> page,
//                                                  @Param("command") CustomerRunPageDto command);

    Long signCount();
}




